
export function useTaskRelation() {
  const relations = [{
    label: '活动',
    value: 'activity'
  }, {
    label: '会员',
    value: 'member'
  }]

  const getTaskRelationLabel = (value: string) => {
    return relations.find(item => item.value === value)?.label ?? value
  }

  return {
    getTaskRelationLabel
  }
}
